package com.codingman.springdemo3;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo1 {

	public static void main(String[] args){ 
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");  
        Foo f = (Foo) context.getBean("fooBean");  
        System.out.println("calling msg...");  
        f.msg();  
        System.out.println("calling m...");  
        f.m();  
        System.out.println("calling k...");  
        f.k(); 
	}
}
